package edu.neusoft.yiqibike.dao.mapper;

import edu.neusoft.yiqibike.common.entity.RolePermission;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * Mapper接口
 * </p>
 *
 * @author YooLin1c
 * @since 2017-12-11
 */
public interface RolePermissionMapper extends BaseMapper<RolePermission> {

    List<RolePermission> selectPermissionssByRidAndPids(@Param("rid") Long rid, @Param("pids") List<Long> pids);

    void updateByIdAndIsEnable(@Param("id") String id, @Param("isEnable") Integer isEnable, @Param("now") Date now,
                               @Param("realname") String realname);
}